package com.dhcc.cdc.sys.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.dhcc.core.framework.base.entity.DataEntity;


/**
 * 系统字典
 * 
 * @ClassName: DictionaryEntity
 * @Description: TODO
 * @author jumper
 * @date 2021-04-16 17:11:56
 */
@TableName("t_cdc_sys_dictionary") 
public class DictionaryEntity extends DataEntity<DictionaryEntity> {
	private static final long serialVersionUID = 1L;
	
	//代码
	private String code;	
	//描述
	private String description;	
	//字典类型
	private Long dictypeId;	
    @TableField(exist = false)
    private DictypeEntity dictype;
	public DictypeEntity getDictype() {
        return dictype;
    }
    public void setDictype(DictypeEntity dictype) {
        this.dictype = dictype;
    }
    //是否有效
	private Integer isActive;
	@TableField(strategy = FieldStrategy.IGNORED)
	//指向t_cdc_ct_dictionary
	private Long ctDic;
	@TableField(exist = false)
	private String dictypeDesc;
	//多选框是否选中
	@TableField(exist = false)
	private Boolean isCheck;

	/**
	 * 设置：代码
	 */
	public void setCode(String code) {
		this.code = code;
	}
	/**
	 * 获取：代码
	 */
	public String getCode() {
		return code;
	}
	/**
	 * 设置：描述
	 */
	public void setDescription(String description) {
		this.description = description;
	}
	/**
	 * 获取：描述
	 */
	public String getDescription() {
		return description;
	}
	/**
	 * 设置：字典类型
	 */
	public void setDictypeId(Long dictypeId) {
		this.dictypeId = dictypeId;
	}
	/**
	 * 获取：字典类型
	 */
	public Long getDictypeId() {
		return dictypeId;
	}
	/**
	 * 设置：是否有效
	 */
	public void setIsActive(Integer isActive) {
		this.isActive = isActive;
	}
	/**
	 * 获取：是否有效
	 */
	public Integer getIsActive() {
		return isActive;
	}

	public Long getCtDic() {
		return ctDic;
	}

	public void setCtDic(Long ctDic) {
		this.ctDic = ctDic;
	}

	public String getDictypeDesc() {
		return dictypeDesc;
	}

	public void setDictypeDesc(String dictypeDesc) {
		this.dictypeDesc = dictypeDesc;
	}

	public Boolean getIsCheck() {
		return isCheck;
	}

	public void setIsCheck(Boolean check) {
		isCheck = check;
	}
}
